package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * @EnableDiscoveryClient : 注册与发现申明
 * @EnableFeignClients : rpc远程调用注册中心申明
 * @EnableCircuitBreaker : 断路器开启
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker
public class RegisterCallerApplication {

	public static void main(String[] args) {
		SpringApplication.run(RegisterCallerApplication.class, args);
	}
}
